package com.lovo.stock.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lovo.stock.bean.PageInfo;
import com.lovo.stock.bean.PurchaseBean;

/**
 * 采购信息服务类
 */
public interface IPurchaseService {

    /**
     * 分页查询采购信息
     * @param pageInfo
     * @return
     */
    IPage<PurchaseBean> queryPurchaseByPage(PageInfo<PurchaseBean> pageInfo);

    /**
     * 根据采购信息id查询采购信息
     * @param id
     * @return
     */
    PurchaseBean queryPurchaseAndDetailById(int id);

    /**
     * 增加采购信息
     * @param purchaseBean
     */
    int addPurchase(PurchaseBean purchaseBean);

}
